#ifndef CLIENT_H
#define CLIENT_H

#include <QObject>
#include <QTcpSocket>

class Client : public QObject
{
    Q_OBJECT
public:
    Client(QTcpSocket*);
    void sendConflicts(QString);
    void sendPopulation(QString);
    void sendTimeSlots(QString);

    enum MessageType{
        POPULATION = 1,
        CONFLICT = 2,
        TIMESLOTS = 3
    };

signals:
    void gotData(QString);

private:
    QTcpSocket* socket;
    QString name;
    quint16 size;

private slots:
    void receiveMessage();
};

#endif // CLIENT_H
